#include<stdio.h>
#include<string.h>
int main()
{
	char a[101],b[7],c[7];
	int i=0,j=0,k=0,lena,lenb;
	gets(a);gets(b);
	lena=strlen(a);
	lenb=strlen(b);
	while(k<lena)
	{
		for(i=k;i<lenb+k;i++)
			c[j++]=a[i];
		k++;j=0;
		if( (strcmp(b,c))==0 )
			{printf("yes\n");break;}
		if( k==lena-lenb+1 )
			{printf("no\n");break;}
	}
	return 0;
}
